import 'auth/ApiBase.dart';
import 'dio/BaseModel.dart';
import 'dio/DioClient.dart';

class DeApi {


  Future<BaseModel> getDeviceData() async {
    BaseModel response =  await DioClient().doDio("/device/getDD", method: HTTPMethod.get, loading: true);

    return response;
  }






  Future<BaseModel> getRouters() async {
    var numbers = {};
    numbers['username'] = 'userName';
    numbers['password'] = 'password';
    BaseModel response =  await DioClient().doDio("/getRouters", method: HTTPMethod.post, data: numbers, loading: true);



    return response;
  }

  Future<BaseModel> getRouters2() async {
    var numbers = {};
    numbers['username'] = 'userName';
    numbers['password'] = 'password';
    BaseModel response =  await DioClient().doDio("/device/getDevice", method: HTTPMethod.get, loading: true);

    print(response.data);

    return response;
  }


}